GBML manual / Motion

move_step

Steps `distance` pixels along this instance’s own current `direction` - a one-off nudge, independent of hsp/vsp/speed, and not something that accumulates on its own.

Sega Genesis: not built yet

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

move_step(distance)

Arguments

NameType
distancereal

Returns

Nothing.

Description

Steps distance pixels along this instance's own current direction - a one-off nudge, independent of hsp/vsp/speed and not something that accumulates on its own the way setting speed does. Purely kinematic, the same as move_to: it never consults the room's own collision, unlike move_slide/move_bounce.

Example

move_step(3);

Moves the bolt 3 pixels along whatever direction it is already facing, every step - a manual substitute for setting speed once and letting the engine's own motion phase carry it, with nothing checked along the way.

See also: move_tomove_slidedirection